package com.indextank.roo.addon;

import org.springframework.roo.classpath.PhysicalTypeMetadata;
import org.springframework.roo.classpath.details.annotations.populator.AbstractAnnotationValues;
import org.springframework.roo.classpath.details.annotations.populator.AutoPopulate;
import org.springframework.roo.classpath.details.annotations.populator.AutoPopulationUtils;
import org.springframework.roo.model.JavaType;

/**
 *
 */
public class IndextankSearchAnnotationValues extends AbstractAnnotationValues {
    
    @AutoPopulate String searchMethod = "search";
    @AutoPopulate String postPersistOrUpdateMethod = "postPersistOrUpdate";
    @AutoPopulate String preRemoveMethod = "preRemove";
    @AutoPopulate String indexMethod = "index";
    @AutoPopulate String deleteIndexMethod = "deleteIndex";
   

    public IndextankSearchAnnotationValues(PhysicalTypeMetadata governorPhysicalTypeMetadata) {
        super(governorPhysicalTypeMetadata, new JavaType(RooIndextankSearchable.class.getName()));
        AutoPopulationUtils.populate(this, annotationMetadata);
    }


    public String getSearchMethod() {
        return searchMethod;
    } 

    public String getPostPersistOrUpdateMethod() {
        return postPersistOrUpdateMethod;
    } 

    public String getPreRemoveMethod() {
        return preRemoveMethod;
    } 

    public String getIndexMethod() {
        return indexMethod;
    } 

    public String getDeleteIndexMethod() {
        return deleteIndexMethod;
    } 
}
